package com.azt.front.utils;

import java.util.HashMap;
import java.util.Map;


/**
 *	系统常量
 */
public final class Globals {

	/** session中用户信息key */
	public static String CURRENT_USER = "currentUser";
	
	/** 重新获取user放入request中**/
	public static String USER = "user";

	/** session中登录认证方式key */
	public static String LOGIN_TYPE = "loginType";

	/** session中用户登录角色key */
	public static String CURRENT_ROLE = "currentRole";

	/** session中保存的临时文件*/
	public static String TEMP_FILE = "temp_file";


	//------------------------------ 登录 ----------------------------------------

	/** rememberMe cookie加密密钥，16位 */
	public static final String REMEMBERME_COOKIE_KEY = "uteFdcgRdg2vhFvh";

	/** rememberMe cookie名称 */
	public static final String REMEMBERME_COOKIE_NAME = "uid";

	/** rememberMe cookie有效期（单位：秒） */
	public static final int REMEMBERME_COOKIE_EXPIRE = 3600 * 24 * 7;

	/** 防止重复提交Form中需要保存的token的key */
	public static final String AVOID_TOKEN = "avoidToken";


	public static final String CART_COOKIE = "cart";

	//分面默认一页的条数
	public static int PAGESIZE = 10;
	public static String dEFIMGString_4X3="/res/front/image/no_pic.jpg";
	public static String dEFIMGString_2X1="/res/front/image/no-pic.jpg";
	public static String dEFIMGString_logo="/res/front/image/no-logo.jpg";
	/**
	 * 用户所拥有的权限
	 */
	public static String PERMISSION_MODEL ="_permission_key";
	
	public static String TOKEN_SECURE ="token_secure";

	/**
	 * 存储时间的Map
	 * */
	public static Map<String,Long> mobCodeDate=new HashMap<String,Long>();
	/**
	 * 是否使用自定义模板发送
	 * */
	public static  Boolean  USEDIYMODEL=false; 

	/**
	 * @Field @VALIDATE_IMAGE : 图片验证码key
	 */
	public static final String VALIDATE_IMAGE = "validate_image";

	/**
	 * 确认收货验证码session
	 * */
	public static final String SIGN_SHIP_CODE = "signShipCode";
	
	/**
	 * @fieldName: SIGN_SAFECENTER_CODE
	 * @fieldType: String
	 * @Description: 个人资料设置验证码
	 */
	public static final String SIGN_SAFECENTER_CODE="signsafecentercode";

	//------------------------------ redis缓存key begin ----------------------------------------

	public static final String AREA_REDIS_KEY = "areaCache";
	public static final String FUNCTION_REDIS_KEY = "functionCache";

	//------------------------------ redis缓存key   end ----------------------------------------
}
